import ajax from "@/utils/request";

export function changePasswordFn(data:{phone_number:number,oldPassword:number,newPassword:number}){
    return ajax({
        url: '/change-password',
        method: 'post',
        data
    })
}





// 编辑用户
// /edit-user/:id
export function editUserFn(userId: string,userData?:any) {
    return ajax({
        url: `/edit-user/${userId}`,
        method: 'put',
        data: userData
    });
}
